package org.rency.ues.domain.model;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.rency.ues.common.enums.EncryptType;

/**
 * ${todo}
 *
 * @author: Created by user_rcy@163.com on 2016/07/31.
 * @version: V1.0.0
 * @since JDK 1.8
 */
public class CertificationDomain extends BaseDomain {

    /**
	 * 
	 */
	private static final long serialVersionUID = -280728361186794638L;

    private final String[]      ToStringExcludes         = { "certPassword"};

	private int id;

    private String cert;

    private EncryptType certType;

    private String certPassword;

    private String serialNo;

    private String orgiEmail;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCert() {
        return cert;
    }

    public void setCert(String cert) {
        this.cert = cert;
    }

    public EncryptType getCertType() {
        return certType;
    }

    public void setCertType(EncryptType certType) {
        this.certType = certType;
    }

    public String getCertPassword() {
        return certPassword;
    }

    public void setCertPassword(String certPassword) {
        this.certPassword = certPassword;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getOrgiEmail() {
        return orgiEmail;
    }

    public void setOrgiEmail(String orgiEmail) {
        this.orgiEmail = orgiEmail;
    }

    @Override
    public String toString(){
        return new ReflectionToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).setExcludeFieldNames(ToStringExcludes).toString();
    }
}
